package com.kwok.hotel.es.db.common;

import lombok.Getter;

/**
 * 枚举类 - 多例模式
 */
@Getter
public enum Codes {

    SUCC(200,"成功"),

    FAIL(500,"失败");

    private Integer code;

    private String msg;

    /**
     * 全参构造方法
     * @param code
     * @param msg
     */
    Codes(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
